package com.gpslw.security.listener;



import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.event.TransactionalEventListener;


@Slf4j
@Component
public class TransactionListener {

    @TransactionalEventListener
    public void onEvent(MessageEvent messageEvent){
        log.info("事务已经提交");
        System.out.println("===============transaction end");
    }
}
